import 'eventable.dart';
import 'world.dart';
import 'material_manager.dart';

class UseEvent extends Eventable {
  UseEvent() : super('使用');
  
  @override
  void doEvent(owner) {
    World.instance.
    hero.pureRemoveThing(MaterialManager.instance.newMaterialWithCode('lei_fu'));
    World.instance.
    hero.getThing(MaterialManager.instance.newMaterialWithCode('essence_of_fire'));
  }
}